﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdmLabOrder.aspx.cs" Inherits="LMS.SMSH.WEB.AdmLabOrder" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>实验预约管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="gvOrderLab" runat="server" BackColor="#DEBA84" BorderColor="Black"
                    BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" AutoGenerateColumns="False"
                    OnPageIndexChanging="gvOrderLab_PageIndexChanging" OnRowDataBound="gvOrderLab_RowDataBound"
                    PageSize="10">
                    <PagerSettings FirstPageText="第一页" LastPageText="最后一页" Mode="NextPreviousFirstLast"
                        NextPageText="下一页" PreviousPageText="上一页" />
                    <RowStyle BackColor="Orange" Font-Size="Small" />
                    <PagerStyle BackColor="#FFC080" Font-Size="Small" Font-Strikeout="False" Font-Underline="False"
                        ForeColor="Black" HorizontalAlign="Right" />
                    <Columns>
                        <asp:TemplateField HeaderText="行编号">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="6%" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="6%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="全选">
                            <HeaderTemplate>
                                <asp:CheckBox ID="chkHeader" runat="server" Text="全选" AutoPostBack="true" OnCheckedChanged="chkHeader_CheckedChanged" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkItem" runat="server" Text="" AutoPostBack="true" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="7%" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="7%" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="orderId" HeaderText="预约ID">
                            <HeaderStyle HorizontalAlign="Center" Width="6%" />
                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="orderTime" HeaderText="预约时间">
                            <HeaderStyle HorizontalAlign="Center" Width="6%" />
                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="orderTestTime" HeaderText="预约实验时间">
                            <HeaderStyle HorizontalAlign="Center" Width="10%" />
                            <ItemStyle HorizontalAlign="Center" Width="10%" />
                        </asp:BoundField>
                        <%--<asp:TemplateField HeaderText="实验名称">
                            <HeaderStyle HorizontalAlign="Center" Width="10%" />
                            <ItemStyle HorizontalAlign="Center" Width="10%" />
                        </asp:TemplateField>--%>
                        <asp:BoundField DataField="teacherId" HeaderText="预约教师ID">
                            <HeaderStyle HorizontalAlign="Center" Width="5%" />
                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="labId" HeaderText="预约实验室ID">
                            <HeaderStyle HorizontalAlign="Center" Width="6%" />
                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="testDetail" HeaderText="预约说明">
                            <HeaderStyle HorizontalAlign="Center" Width="20%" />
                            <ItemStyle HorizontalAlign="Center" Width="20%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="删除">
                            <HeaderStyle HorizontalAlign="Center" Width="4%" />
                            <ItemStyle HorizontalAlign="Center" Width="4%" />
                            <ItemTemplate>
                                <asp:Button ID="btnMyDelete" runat="server" CommandArgument='<%#Eval("orderId")%>'
                                    CommandName="btnMyDelete" Text="删除" OnClick="btnMyDelete_Click" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="OrangeRed" />
                    <AlternatingRowStyle BackColor="NavajoWhite" />
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
